package com.clh.seckill.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/demo")
public class DemoController {
    @RequestMapping("/hello")
    public String hello(Model model){
        model.addAttribute("name","我回来了");
        return "hello";
    }
    @RequestMapping("/hello2")
    public String hello2(Model model,String meg){
        model.addAttribute("name",meg);
        return "hello";
    }
}
